package com.jsj.service.impl;

import com.jsj.dao.SimSubmissionDao;
import com.jsj.domain.SimSubmission;
import com.jsj.service.ISimSubmissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 文件查重Service业务层处理
 *
 * @author timec
 * @date 2022-08-09
 */
@Service
public class SimSubmissionServiceImpl implements ISimSubmissionService {

    private final SimSubmissionDao simSubmissionDao;

    @Autowired
    public SimSubmissionServiceImpl(SimSubmissionDao simSubmissionDao) {
        this.simSubmissionDao = simSubmissionDao;
    }

    /**
     * 查询文件查重
     *
     * @param id 文件查重主键
     * @return 文件查重
     */
    @Override
    public SimSubmission queryById(long id) {
        return simSubmissionDao.queryById(id);
    }

    /**
     * 查询文件查重列表
     *
     * @return 文件查重
     */
    @Override
    public List<SimSubmission> query(int subTopId, int problemId) {
        return simSubmissionDao.query(subTopId, problemId);
    }

    /**
     * 新增文件查重
     *
     * @return 结果
     */
  /*  @Override
    public Integer insertSimSubmission(SimSubmission simSubmission) {
        return simSubmissionDao.insertSimSubmission(simSubmission);
    }*/

    /**
     * 修改文件查重
     *
     * @return 结果
     */
    @Override
    public Integer updateSimSubmission(SimSubmission simSubmission) {
        return simSubmissionDao.updateSimSubmission(simSubmission);
    }

    /**
     * 批量删除文件查重
     *
     * @param ids 需要删除的文件查重主键
     * @return 结果
     */
  /*  @Override
    public Integer deleteSimSubmissionByIds(long[] ids) {
        return simSubmissionDao.deleteSimSubmissionByIds(ids);
    }*/

    /**
     * 删除文件查重信息
     *
     * @param id 文件查重主键
     * @return 结果
     */
   /* @Override
    public Integer deleteSimSubmissionById(long id) {
        return simSubmissionDao.deleteSimSubmissionById(id);
    }*/
}
